ODF provides a standard About box following OpenDoc guidelines. Using a simple resource (defined in FWPart:Include:FWAbout.fr) the About box can be customized to contain your own information.
resource FW_RAbout(kAbout)
{
// ----- Icon ID
141,
// ----- Part Name
FW_RStyledText
(
FW_FIX(18), // Font size
FW_kBold, // Font style
"times", // Font name
"ODFBitmap"
),
// ----- Version Number
FW_RStyledText
(
FW_FIX(9), // Font size
FW_kPlain, // Font style
"geneva", // Font name
"Version 1.0d12"
),
// ----- Credits
FW_RStyledText
(
FW_FIX(9), // Font size
FW_kPlain, // Font style
"geneva", // Font name
"ODFBitmap....\r\r\r\r\r\r" // note there is no ',' on this line. It will be
"Written by the ODF Team.\r" // concatenated will this one
)
};
If you use 9-point geneva there is room for up to 12 lines of credits.
To display the About box in response to a kODCommandAbout command, call the global method FW_About and pass it your part and the id of your About resource.